package com.quik.web.action.vo;

import java.util.HashMap;
import java.util.Map;

public class JsonErrorResult implements JsonResultItf{
	private String state = "failure";
	private Map<String, Object> data = new HashMap<String, Object>();
	
	
	public String getState() {
		return state;
	}


	public Map<String, Object> getData() {
		return data;
	}


	public JsonErrorResult(){
		
	}

	public JsonErrorResult(Throwable e){
		this.add("exception", e.getMessage());
	}
	public JsonResultItf add(String name, Object value){
		this.data.put(name, value);
		return this;
	}

}
